home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / demos / lotorg.zip / DISK1.ZIP / INSTALL.INF < prev    next >
Text File  |  1992-09-11  |  13KB  |  426 lines

  1. ;
  2. ;                            Product Installation System Script
  3. ;
  4. ;                                        Lotus Organizer 1.0
  5. ;                                              
  6. ;
  7. ;                        (C) Lotus Development Corporation 1991-92
  8. ;
  9. ;      Jointly developed by Lotus Development Corporation and Threadz Limited
  10. ;
  11. ;
  12. ;    Release Date:        24th July 1992
  13. ;
  14. ;
  15.  
  16. ;
  17. ;    Sys Messages are so that we can localize the install script easily
  18. ;
  19.  
  20.     SYSMESSAGE 1 "Copying %s"
  21.     SYSMESSAGE 2 "Please insert %s into drive %c."
  22.     SYSMESSAGE 3 "Source file %s not found. Continue?"
  23.     SYSMESSAGE 4 "%s already exists. Overwrite?"
  24.     SYSMESSAGE 5 "Error creating %s"
  25.     SYSMESSAGE 6 "Deleting %s"
  26.     SYSMESSAGE 7 "Renaming %s"
  27.     SYSMESSAGE 8 "Cancel"
  28.  
  29. ;
  30. ; Set the overall caption and open the status window for installation
  31. ;
  32.  
  33. #if INSTALL.INF
  34.     CAPTION        Lotus Organizer 1.0 Installation
  35. #elseif UNINSTAL.INF
  36.     CAPTION        Lotus Organizer 1.0 Un-Installation
  37. #else
  38.     GOTO Big_End
  39. #endif
  40.  
  41. #if INSTALL.INF
  42. ;
  43. ; Check the users video resolution to see if we even want to bother installation
  44. ;
  45.  
  46.     EQUALI        $(VIDEOMODE)    CGA
  47.     IF YES        MESSAGE "Your monitor has a CGA display. Lotus Organizer requires a VGA display to operate. Please upgrade your hardware before installing the product."
  48.     IF YES        GOTO Big_End
  49.  
  50.     EQUALI        $(VIDEOMODE)    EGA
  51.     IF NO            GOTO No_EGA
  52.  
  53.     QUESTION     "Your monitor has an EGA display. Lotus Organizer requires a VGA display to operate. If you install Lotus Organizer on this system, you may experience some display problems. Do you want to continue installation?"
  54.     IF NO            GOTO Big_End
  55.  
  56. :No_EGA
  57.  
  58. ;
  59. ; Get the user to record the serial number on his/her registration card
  60. ;
  61. ; NOT IN DEMO VERSION, so comment out !
  62. ;    SHOWSERIAL    Your serial number is %s. To become a registered user, fill out and mail in your Warranty Registration card.
  63. #endif
  64.  
  65.     OPENSTATUS    Lotus Organizer Installation
  66.  
  67. ;
  68. ;    Check this workstation to see if Threadz Organizer Admin is still running
  69. ;
  70.  
  71.     WINDOW        TZ_ADMINCLASS
  72.     IF NO            GOTO No_Threadz_Admin
  73.  
  74.     MESSAGE        Threadz Organizer Administrator program is running. You need to exit Install, close the Organizer Administrator and restart Install.
  75.     GOTO            Big_End
  76.  
  77. :No_Threadz_Admin
  78.  
  79. ;
  80. ;    Check this workstation to see if Threadz Organizer Utils is still running
  81. ;
  82.  
  83.     WINDOW        ORGTESTCLASS
  84.     IF NO            GOTO No_Threadz_Utils
  85.  
  86.     MESSAGE        Threadz Organizer Test program is running. You need to exit Install, close the Organizer Test program and restart Install.
  87.     GOTO            Big_End
  88.  
  89. :No_Threadz_Utils
  90. ;
  91. ;    Check this workstation to see if Lotus Organizer is already running
  92. ;
  93.     WINDOW        TZ_PORG
  94.     IF NO            GOTO Local_Org_Not_Running
  95.  
  96.     MESSAGE        Lotus Organizer is already running. You need to exit Install, close the Organizer and restart Install.
  97.     GOTO            Big_End
  98.  
  99. :Local_Org_Not_Running
  100. ;
  101. ;    Check this workstation to see if Lotus Organizer is already running
  102. ;
  103.     WINDOW        TZ_FIXCLASS
  104.     IF NO            GOTO Local_Utils_Not_Running
  105.  
  106.     MESSAGE        Lotus Organizer Utilities is running. You need to exit Install, close the Organizer Utilities and restart Install.
  107.     GOTO            Big_End
  108.  
  109. :Local_Utils_Not_Running
  110. ;
  111. ; Set the source directory for installation
  112. ;
  113. #if INSTALL.INF
  114.     SETSRCDIR    $(STARTDIR)\Organize
  115.     $(USERDIR) = GETPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize C:\Organize\Organize.Exe
  116.     $(DESTDIR) = LOOSEFILE $(USERDIR)
  117. #else
  118.     SETSRCDIR    $(STARTDIR)
  119.     SETDESTDIR    $(STARTDIR)
  120. #endif
  121.  
  122. ;
  123. ; Get the user to modify the source and destination directories if necessary
  124. ;
  125. :Get_Dirs
  126.  
  127. #if INSTALL.INF
  128.     EXIST $(SRCDIR)\Organize.Exe
  129.     IF NO GETSRCDIR Is Lotus Organizer install disk in the directory shown below?\rIf Yes, choose OK.\rIf No, retype the path and choose OK.\r\rTo stop installation, choose Cancel or press ESC.
  130.     GETDESTDIR Type the path where you want to install Lotus Organizer.\r\rChoose OK to continue installation, or Cancel to stop.
  131.  
  132.     INSTR $(DESTDIR) A:
  133.     IF NO GOTO B_Check
  134.     GOTO Floppy_Question
  135.  
  136. :B_Check
  137.     INSTR    $(DESTDIR) B:
  138.     IF NO GOTO Done_Floppy_Check
  139.  
  140. :Floppy_Question
  141.     QUESTION Are you sure you want to install Lotus Organizer in $(DESTDIR)?
  142.     IF NO GOTO Get_Dirs
  143.  
  144. :Done_Floppy_Check
  145.     EQUALI $(SRCDIR) $(DESTDIR)
  146.     IF NO GOTO Check_Extend
  147.  
  148.     MESSAGE    Cannot copy files to the Install Disk.
  149.     GOTO Get_Dirs
  150.  
  151. :Check_Extend
  152.  
  153. ;
  154. ; Check the free space on the destination drive 
  155. ;
  156.  
  157. :Dirs_OK
  158.     EXIST $(DESTDIR)\Organize.Exe
  159.     IF NO GOTO Space_Check
  160. ;
  161. ; If there was, ask them if they want to delete it
  162. ;
  163.     QUESTION A previous version of the Organizer exists. Do you want to delete it?
  164.     IF YES GOTO Attempt_Old_Delete
  165.     MESSAGE    Installation terminated
  166.     CLOSESTATUS
  167.     GOTO Big_End
  168.  
  169. :Attempt_Old_Delete
  170. ;
  171. ;    Attempt to delete Organize.Bin and then check to see it went, if not then another workstation may
  172. ;    have this file open, so tell the user
  173. ;
  174.  
  175.     DELETE 1 $(DESTDIR)\Organize.Bin $(DESTDIR)\Organize.Bin -R 1 "Previous Organizer Program"
  176.     EXIST $(DESTDIR)\Organize.Bin
  177.     IF NO GOTO Skip_Space_Check
  178.  
  179.     MESSAGE Another user on your network is currently running Lotus Organizer. You need to exit Install, make sure that no one else is running the Organizer, then restart Install.
  180.     CLOSESTATUS
  181.     GOTO Big_End
  182.  
  183. :Space_Check
  184.     NEEDSPACE $(DESTDIR) 2800000 "%ld bytes are available on drive %c:. Lotus Organizer requires %ld bytes of disk space. Please select another drive."
  185.     IF NO GOTO Get_Dirs
  186.  
  187. :Skip_Space_Check
  188.  
  189. ;
  190. ; Build the destination directories
  191. ;
  192.     MKDIR $(DESTDIR)\SAMPLE
  193.     MKDIR $(DESTDIR)\ORGFILES
  194.  
  195. ;
  196. ; Setup disk list
  197. ;
  198.     RESETDISKS
  199.     DISKS    "Lotus Organizer Install Disk"
  200.  
  201. ;
  202. ; Determine which network drivers to install if at all
  203. ;
  204.     RESETFILES
  205.  
  206. #else
  207.  
  208.     GETSRCDIR Is Lotus Organizer located in the directory shown below?\rIf Yes, choose OK.\rIf No, retype the path and choose OK.\r\rIf you do not want to remove Lotus Organizer from your hard drive,\rchoose Cancel or press ESC.
  209.     SETDESTDIR $(SRCDIR)
  210.  
  211. ;
  212. ; Setup disk list
  213. ;
  214.     RESETDISKS
  215.     DISKS    "Lotus Organizer Install Disk"
  216.  
  217. ;
  218. ; Determine which extra files need deleting
  219. ;
  220.     RESETFILES
  221.  
  222.     FILES $(WINDIR)\orgicn.cfg                            $(WINDIR)\orgicn.cfg                        -R 2 1 "SmartIcons Configuration"
  223.     FILES    $(WINDIR)\organize.ini                        $(WINDIR)\Organize.Ini                    -R 2 1 "Organizer Defaults"
  224.     FILES    $(DESTDIR)\Organize.V10                        $(DESTDIR)\Organize.V10                    -R 2 1 "Licence Information"
  225.     EXIST $(WINDIR)\ORG1000.PLT
  226.     IF YES FILES $(WINDIR)\*.plt                        $(WINDIR)\*.plt                            -R 2 1 "Paper Layouts"
  227.  
  228.     QUESTION Do you want to delete all files in the $(SRCDIR)\\ORGFILES directory (including all .ORG files)?
  229.     IF YES FILES $(SRCDIR)\ORGFILES\*.*                $(SRCDIR)\ORGFILES\*.*                    -R 2 1 "Data Files"
  230.  
  231. #endif
  232.  
  233. ;
  234. ; Build up the list of files to copy
  235. ;
  236. :Non_Network_Files
  237.     FILES $(SRCDIR)\Organize.Exe                        $(DESTDIR)\Organize.Exe                        -R 2 1 "Lotus Organizer Program"
  238.     FILES $(SRCDIR)\Organize.Dll                        $(DESTDIR)\Organize.Dll                        -R 2 1 "Lotus Organizer Program"
  239.     FILES $(SRCDIR)\TzDll.Dll                            $(DESTDIR)\TzDll.Dll                            -R 2 1 "Lotus Organizer Library"
  240.     FILES $(SRCDIR)\l1wnet.dll                            $(DESTDIR)\l1wnet.dll                        -R 2 1 "Lotus Organizer Library"
  241.     FILES $(STARTDIR)\ivcw.dll                            $(DESTDIR)\ivcw.dll                            -R 2 1 "Lotus Organizer Library"
  242.     FILES $(SRCDIR)\OrgUtils.Exe                        $(DESTDIR)\OrgUtils.Exe                        -R 2 1 "Lotus Organizer Utilities"
  243.     FILES $(SRCDIR)\Organize.Ini                        $(DESTDIR)\Organize.Ini                        -R 2 1 "Lotus Organizer Defaults"
  244.     FILES $(STARTDIR)\Org_IR.DLL                        $(DESTDIR)\Org_IR.DLL                        -R 2 1 "Lotus Organizer Defaults"
  245.  
  246.     FILES $(SRCDIR)\ltsicn01.dll                        $(DESTDIR)\ltsicn01.dll                        -R 2 1 "SmartIcons Manager"
  247.     FILES $(SRCDIR)\orgicn8.dll                        $(DESTDIR)\orgicn8.dll                        -R 2 1 "8514 SmartIcons"
  248.     FILES $(SRCDIR)\orgicnv.dll                        $(DESTDIR)\orgicnv.dll                        -R 2 1 "VGA SmartIcons"
  249.     FILES $(SRCDIR)\orgicn.cfg                            $(DESTDIR)\orgicn.cfg                        -R 2 1 "SmartIcons Configuration"
  250.  
  251.     FILES $(SRCDIR)\Organize.Hlp                        $(DESTDIR)\Organize.Hlp                        -R 2 1 "Help File"
  252.     FILES $(SRCDIR)\TZAFont.Dll                        $(DESTDIR)\TZAFont.Dll                        -R 2 1 "Font Files"
  253.     FILES $(SRCDIR)\TZBFont.Dll                        $(DESTDIR)\TZBFont.Dll                        -R 2 1 "Font Files"
  254.  
  255. ; Paper Layout Files
  256.     FILES    $(SRCDIR)\*.plt                                $(DESTDIR)\*.plt                                -R 2 1 "Paper Layout Files"
  257.  
  258. ; Batch Program for Workstation install, server to server install etc
  259.     FILES $(STARTDIR)\Install.Bin                        $(DESTDIR)\UnInstal.Exe                        -R 2 1 "UnInstall Program"
  260.     FILES $(STARTDIR)\Install.Inf                        $(DESTDIR)\UnInstal.Inf                        -R 2 1 "UnInstall Script"
  261.     FILES $(STARTDIR)\Readme.Txt                        $(DESTDIR)\ReadMe.Txt                        -R 2 1 "Release Notes"
  262.  
  263. ; \SAMPLE
  264.     FILES    $(SRCDIR)\SAMPLE\*.CSV                        $(DESTDIR)\SAMPLE\*.CSV                        -R 2 1 "Sample Files"
  265.     FILES    $(SRCDIR)\SAMPLE\*.WRI                        $(DESTDIR)\SAMPLE\*.WRI                        -R 2 1 "Sample Files"
  266.     FILES    $(SRCDIR)\SAMPLE\*.BMP                        $(DESTDIR)\SAMPLE\*.BMP                        -R 2 1 "Sample Files"
  267.     FILES    $(SRCDIR)\SAMPLE\*.ORG                        $(DESTDIR)\SAMPLE\*.ORG                        -R 2 1 "Sample Files"
  268.     FILES    $(SRCDIR)\SAMPLE\*.DOC                        $(DESTDIR)\SAMPLE\*.DOC                        -R 2 1 "Sample Files"
  269.     FILES    $(SRCDIR)\SAMPLE\*.SAM                        $(DESTDIR)\SAMPLE\*.SAM                        -R 2 1 "Sample Files"
  270.     FILES    $(SRCDIR)\SAMPLE\*.FM3                        $(DESTDIR)\SAMPLE\*.FM3                        -R 2 1 "Sample Files"
  271.     FILES    $(SRCDIR)\SAMPLE\*.WK3                        $(DESTDIR)\SAMPLE\*.WK3                        -R 2 1 "Sample Files"
  272.     FILES    $(SRCDIR)\SAMPLE\*.WMF                        $(DESTDIR)\SAMPLE\*.WMF                        -R 2 1 "Sample Files"
  273.     FILES    $(SRCDIR)\SAMPLE\*.TXT                        $(DESTDIR)\SAMPLE\*.TXT                        -R 2 1 "Sample Files"
  274.     FILES    $(SRCDIR)\SAMPLE\*.WP                        $(DESTDIR)\SAMPLE\*.WP                        -R 2 1 "Sample Files"
  275.  
  276. ;
  277. ; Check to see if there was an old version of Lotus Organizer around
  278. ;
  279.     EXIST $(DESTDIR)\Organize.Exe
  280.     IF NO GOTO No_Old_Organizer
  281. ;
  282. ; Delete the old version of the software
  283. ;
  284. :Delete_Old
  285.     DELETEFILES
  286.  
  287. :No_Old_Organizer
  288. #if INSTALL.INF
  289. ;
  290. ; Perform the installation
  291. ;
  292.     SERIALIZE $(STARTDIR)\Org_ir.Dll
  293.     EXPANDFILES
  294.  
  295. ; Next line not required in SmartSuite since that will be a network license system
  296.     LICENSE    $(DESTDIR)\Organize.V10
  297.  
  298.     STATUS Setting .INI File Defaults
  299. ;
  300. ; Check GrayText value for colors
  301. ;
  302.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini colors GrayText
  303.     EQUAL "128 128 128" $(USERDIR)
  304.     IF YES GOTO No_Gray_Text
  305.     WRITEPROFILE $(WINDIR)\Win.Ini colors GrayText "128 128 128"
  306.  
  307. :No_Gray_Text
  308.  
  309. ;
  310. ;    Windows 3.1 question to add to StartUp group
  311. ;
  312.  
  313.     EQUAL $(WINVER) 3.10
  314.     IF NO GOTO Check_Win_Ini
  315.  
  316.     QUESTION Do you want Lotus Organizer to start automatically when you start Windows?
  317.     IF NO GOTO No_Ini
  318.  
  319.     PROGMAN [CreateGroup( StartUp )]
  320.     PROGMAN [ShowGroup( StartUp, 1 )]
  321.     PROGMAN [ReplaceItem( Organizer )]
  322.     PROGMAN [AddItem( $(DESTDIR)\Organize.Exe, Organizer, $(DESTDIR)\Organize.Dll, 0 )]
  323.  
  324.     GOTO No_Ini
  325.  
  326. :Check_Win_Ini
  327. ;
  328. ; Determine if Lotus Organizer should be loaded from the load= line
  329. ;
  330.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini Windows Load ""
  331.     INSTR $(USERDIR) ORGANIZE
  332.     IF YES GOTO Replace_Ini
  333.  
  334.     QUESTION Do you want Lotus Organizer to start automatically when you start Windows?
  335.     IF NO GOTO No_Ini
  336.  
  337.     WRITEPROFILE $(WINDIR)\Win.Ini Windows Load "$(DESTDIR)\Organize.Exe $(USERDIR)"
  338.     GOTO No_Ini
  339.  
  340. :Replace_Ini
  341.  
  342.     $(USERDIR) = REPLACESTRING Organize.Exe $(DESTDIR)\Organize.Exe $(USERDIR)
  343.     WRITEPROFILE    $(WINDIR)\Win.Ini Windows Load "$(USERDIR)"
  344.  
  345. ;
  346. ; Ask if we should add to the Program Manager
  347. ;
  348. :No_Ini
  349.     QUESTION Do you want Lotus Organizer added to the Lotus Applications Window so you can easily start the program when you run Windows?
  350.     IF NO GOTO End_Of_Install
  351.  
  352.     PROGMAN [CreateGroup( Lotus Applications )]
  353.     PROGMAN [ShowGroup( Lotus Applications, 1 )]
  354.     EQUAL $(WINVER) 3.10
  355.     IF YES PROGMAN [ReplaceItem( Organizer )]
  356.     PROGMAN [AddItem( $(DESTDIR)\Organize.Exe, Organizer, $(DESTDIR)\Organize.Dll, 0 )]
  357.  
  358. ;
  359. ; That's all folks
  360. ;
  361.  
  362. :End_Of_Install
  363.     QUESTION    Installation is complete.\rDo you want to run Lotus Organizer now?
  364.  
  365. #else
  366.  
  367. ;
  368. ;    Kill directories
  369. ;
  370.  
  371.     RMDIR $(DESTDIR)\SAMPLE
  372.     RMDIR $(DESTDIR)\ORGFILES
  373.     RMDIR $(DESTDIR)
  374.  
  375. ;
  376. ;    Kill progman items if Win 3.1
  377. ;
  378.  
  379.     EQUAL    $(WINVER) 3.10
  380.     IF YES PROGMAN [ShowGroup( Lotus Applications, 1 )]
  381.     IF YES PROGMAN [DeleteItem( Organizer )]
  382.     IF YES PROGMAN [DeleteItem( Organizer Utilities )]
  383.     IF YES PROGMAN [DeleteItem( OrgUtils )]
  384.  
  385. ;
  386. ;    Check StartUp Group
  387. ;
  388.  
  389.     IF YES PROGMAN [ShowGroup( StartUp, 1 )]
  390.     IF YES PROGMAN [DeleteItem( Organizer )]
  391.  
  392. ;
  393. ;    Clean LOTUS.INI
  394. ;
  395.     WRITEPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize [NULL]
  396.  
  397. ;
  398. ;    Clean WIN.INI Extensions
  399. ;
  400.     WRITEPROFILE $(WINDIR)\Win.Ini Extensions ORG [NULL]
  401.  
  402. ;
  403. ;    Clean WIN.INI Load= line
  404. ;
  405.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini Windows Load ""
  406.     INSTR $(USERDIR) ORGANIZE
  407.     IF NO GOTO No_Ini_Clean
  408.  
  409.     $(USERDIR) = REPLACESTRING Organize.Exe [NULL] $(USERDIR)
  410.     WRITEPROFILE    $(WINDIR)\Win.Ini Windows Load "$(USERDIR)"
  411.     
  412. :No_Ini_Clean
  413.  
  414.     MESSAGE Lotus Organizer has been removed from your system. If you removed it from a network drive, or SHARE is loaded, the $(SRCDIR) directory and UNINSTAL.EXE program still exist. These can be deleted using the Windows File Manager.
  415.  
  416. #endif
  417.  
  418.     CLOSESTATUS
  419.  
  420. #if INSTALL.INF
  421.     IF YES RUN $(DESTDIR)\Organize.Exe
  422. #endif
  423.  
  424. :Big_End
  425. ;
  426.